package com.lhkj.ct.meta.admin.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.lhkj.ct.base.mybatis.IBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.validation.constraints.NotBlank;

/**
 * <p>
 * 角色权限
 * </p>
 *
 * @author jobob
 * @since 2023-08-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="TblRoleMenu对象", description="角色权限")
@NoArgsConstructor
@AllArgsConstructor
@Builder(builderMethodName = "TblRoleMenuBuilder", buildMethodName = "builder", builderClassName = "",
        toBuilder = true, access = AccessLevel.PUBLIC, setterPrefix = "")
@TableName("tbl_role_menu")
public class TblRoleMenu implements IBaseEntity<String> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    private String id;

    @NotBlank(message = "角色id不能为空")
    @ApiModelProperty(value = "角色id")
    private String roleId;

    @NotBlank(message = "菜单id不能为空")
    @ApiModelProperty(value = "菜单id")
    private String menuId;


}
